package com.gqb.wangyi;

import java.util.Scanner;

public class huawei {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		while (scanner.hasNext()) {
			String string=scanner.nextLine();
			String[] strs=string.split(" ");
			String word=strs[strs.length-1];
			System.out.println(word.toCharArray().length);
		}
	}
}
